package day03.homework.expand;

import java.util.Scanner;

public class ScoreDemo {
    public static void main(String[] args) {

            System.out.println("请输入成绩：");
            double score = new Scanner(System.in).nextDouble();
            if(score<0 || score>100){
                System.out.println("成绩不合法");
            }else if(score>=90){
                System.out.println("A");
            }else if(score>=80){
                System.out.println("B");
            }else if(score>=60){
                System.out.println("C");
            }else {
                System.out.println("D");
            }

    }
}
